from flask import Flask, render_template

app = Flask(__name__)

# 导入蓝图 (修改为从模块导入)
from auth.routes import auth_bp
from blog.routes import blog_bp

# 注册蓝图 (添加了静态文件处理)
app.register_blueprint(
    auth_bp,
    url_prefix='/auth',
)

app.register_blueprint(
    blog_bp,
    url_prefix='/blog',
)


@app.route('/')
def index():
    return render_template('index.html')

if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0')